package testcasegeneration

import (
	"sort"
	"strconv"
)

func ascendingArray(dataLen int) string {

	resArr := make([]int, dataLen)
	for i := 0; i < dataLen; i++ {
		resArr = append(resArr, randomIntData(0, 2*dataLen))
	}
	sort.Slice(resArr, func(i, j int) bool { return i < j })

	resArrPyString := "["
	for i := range resArr {
		resArrPyString += strconv.Itoa(resArr[i])
		if i != len(resArr)-1 {
			resArrPyString += ","
		}
	}
	resArrPyString += "]"

	return resArrPyString
}
